Insert missing step to make use of directory tracking OSC codes
authorSean Whitton <spwhitton@spwhitton.name>
Wed, 11 Jun 2025 14:23:32 +0000 (15:23 +0100)
committerSean Whitton <spwhitton@spwhitton.name>
Wed, 11 Jun 2025 14:23:42 +0000 (15:23 +0100)
* doc/emacs/misc.texi (Interactive Shell): Say to add
comint-osc-process-output to comint-output-filter-function.

doc/emacs/misc.texi

index c35afcf802c37a39846f5bd62b982e3340eb0b0c..4782fe673e01882c0f28219153c246273d3c9728 100644 (file)
@@ -955,6 +955,13 @@ at each prompt, for instance with the following command:
 printf "\e]7;file://%s%s\e\\" "$HOSTNAME" "$PWD"
 @end example
 
+@noindent
+Then tell Emacs to process the escape codes:
+
+@lisp
+(add-hook 'comint-output-filter-functions #'comint-osc-process-output)
+@end lisp
+
 @vindex explicit-shell-file-name
 @cindex environment variables for subshells
 @cindex @env{ESHELL} environment variable
@@ -1188,7 +1195,7 @@ supports some extend escape codes, like some of the @acronym{OSC}
 (Operating System Codes) if you put the following in your init file:
 
 @lisp
-(add-hook 'comint-output-filter-functions 'comint-osc-process-output)
+(add-hook 'comint-output-filter-functions #'comint-osc-process-output)
 @end lisp
 
 With this enabled, the output from, for instance, @code{ls